package com.towexin.application.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * TODO
 *
 * @author Towexin
 * @version 1.0
 * @date 2021/7/29 9:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_exception_log")
public class ExceptionLog implements Serializable {
    private static final long serialVersionUID = -7413530835422087885L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String message;             // 异常信息
    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String type;                // 异常类型

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String declaringClass;     // 异常类
    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String methodName;         // 异常方法
    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private int lineNumber;            // 异常行

    @TableField(insertStrategy = FieldStrategy.NOT_NULL, fill = FieldFill.INSERT)
    private Date createdTime;
}
